package ooday05;

public class StaticMethod {
    int a;
    static int b;
    void show(){
        System.out.println(a);
        System.out.println(b);
    }
    static void test(){
        //System.out.println(a);编译错误,静态方法中不能直接访问实例变量和方法
        System.out.println(b);
    }
}
